package com.yum.ms.controller;


import com.alibaba.fastjson.JSON;
import com.yum.ms.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Yum
 * @since 2022-02-17
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/info")
    public String info(User user) {
        return JSON.toJSONString(user);
    }
}
